package com.yun.zhong.fu.sharecenter.config;

import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Configuration;
import ribbonconfigration.RibbonIRuleConfig;

/**
 * @Author RenPu
 * @Date 2020/12/29 10:50
 * @Version 1.0
 * @Description: 通过java代码来实现ribbon负载均衡的颗粒度的控制，
 **/

//@Configuration
//@RibbonClient(name = "user-center",configuration = {RibbonIRuleConfig.class}) 针对某个服务进行负载均衡

//全局生效
//@RibbonClients(defaultConfiguration = {RibbonIRuleConfig.class})
public class UserClientRibbonConfigration {
}
